﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace RockBus.CacheManager.AppFabric
{
    public interface ICacheManagerConfiguration
    {
        string CacheName { get; }
        string DataCacheServerHostName { get; }
        int DataCacheServerPort { get; }
    }

    public class CacheManagerConfiguration : ICacheManagerConfiguration
    {
        public string CacheName { get { return CacheManagerConfigurationSection.Instance.DataCacheConfiguration.CacheName;  } }
        public string DataCacheServerHostName { get { return CacheManagerConfigurationSection.Instance.DataCacheConfiguration.DataCacheServerHostName; } }
        public int DataCacheServerPort { get { return CacheManagerConfigurationSection.Instance.DataCacheConfiguration.DataCacheServerPort; } }
    }
}
